<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    // 传递参数:未解构
    // function fn(obj){
    //     console.log(obj.a,obj.b,obj.c);
    // }
    // fn({a:1,b:2,c:3});


    // 解构
    function fn({a,b,c}){
        console.log(a,b,c);
    }
    fn({a:1,b:2,c:3});

</script>
</html>